<%@page import="java.util.Date"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<head>


</head>
<body>

	<div class="content">
		<!--main detail category-->
		<div class="main-detail-category">
			<div class="title">Kết quả tìm kiếm ${keyword}</div>

			<c:if test="${products.size() > 0}">
				<c:forEach var="product" items="${products}">

					<c:forEach var="detail" items="${product.productDetails}">

						<div class="item-main-category">
							<a href="detail.html?id=${detail.productDetailId}"> <img
								src="${detail.image.imageUrl}" />
								<div class="items-details">
									<div class="item-name">${detail.getName()}</div>
									<div class="item-price">${detail.price}VND</div>
								</div>
							</a>
						</div>
					</c:forEach>

				</c:forEach>
			</c:if>


		</div>
	</div>